package com.micro.entity;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * 酒店实体类
 */
@Data
@TableName("hotels")
public class Hotel {

    @TableId(value = "hotel_id", type = IdType.AUTO)
    private Long hotelId;

    @TableField("hotel_name")
    private String hotelName;

    @TableField("hotel_address")
    private String hotelAddress;

    @TableField("hotel_detail")
    private String hotelDetail;

    @TableField("hotel_rating")
    private BigDecimal hotelRating;

    @TableField("remaining_rooms")
    private Integer remainingRooms;

    @TableField("price")
    private BigDecimal price;

    @TableField("city_code")
    private String cityCode;

    @TableField("city_name")
    private String cityName;

    @TableField("province")
    private String province;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableLogic
    @TableField("deleted")
    private Integer deleted;
}